<?php
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use yii\helpers\Html;
use common\components\helpers\Fun;
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>

<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*搜索*/-->
    <div id="search-area" class="yx-bgf7f7f7 yx-radius5 zx-mg yx-function2 yx-pr0">
        <?= Html::beginForm(Fun::url(['headmaster/index']), 'post', ['enctype' => 'multipart/form-data']) ?>
        <?= \common\components\helpers\Search::activeInput('text', $form, 'name', ['label'=>'姓名','class' => 'search yx-input-text zx-width150 yx-ml6','style'=>'margin-bottom:10px']); ?>
        <?= \common\components\helpers\Search::submitButton('搜索', ['id'=>'search-handle','class'=>"yx-search yx-radius2",'style'=>'margin-bottom:10px']); ?>
        <?php Html::endForm() ?>
    </div>
    <!--/*列表*/-->
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table3 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap >
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?=\Yii::t('zhtfrontend','菜单名称');?></th>
                <th><?=\Yii::t('zhtfrontend','位置');?></th>
                <th><?=\Yii::t('zhtfrontend','类型');?></th>
                <th><?=\Yii::t('zhtfrontend','模块');?></th>
                <th><?=\Yii::t('zhtfrontend','控制器');?></th>
                <th><?=\Yii::t('zhtfrontend','方法');?></th>
                <th><?=\Yii::t('zhtfrontend','参数');?></th>
                <th><?=\Yii::t('zhtfrontend','状态');?></th>
                <th><?=\Yii::t('zhtfrontend','排序');?></th>
                <th><?=\Yii::t('zhtfrontend','操作');?></th>
            </tr>
            </thead>
                <?php foreach($model as $item):?>
                    <tr data-id="<?=$item['id']?>">
                        <td><?=$item['name']?></td>
                        <td><?=$item['position']?></td>
                        <td><?=$item['type_id']?></td>
                        <td><?=$item['type']?></td>
                        <td><?=$item['controllers']?></td>
                        <td><?=$item['action']?></td>
                        <td><?=$item['param']?></td>
                        <td><?=$item['status']?></td>
                        <td><?=$item['sort_order']?></td>
                        <td><?=$item['operate']?></td>
                    </tr>
                <?php endforeach?>
        </table>
        <div style="text-align: right"><?= common\components\widgets\GoPager::widget(['pagination' => $pages]) ?></div>
    </div>
</div>










